home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / kh_gdi.zip / GD_DMAPP.H < prev    next >
C/C++ Source or Header  |  1996-05-11  |  2KB  |  65 lines

  1. #if !defined(__gd_dmapp_h)              // Sentry, use file only if it's not already included.
  2. #define __gd_dmapp_h
  3.  
  4. /*  Project gdi_demo
  5.     
  6.     Copyright ⌐ 1995. All Rights Reserved.
  7.  
  8.     SUBSYSTEM:    gdi_demo.exe Application
  9.     FILE:         gd_dmapp.h
  10.     AUTHOR:       S.Vartanov
  11.  
  12.  
  13.     OVERVIEW
  14.     ========
  15.     Class definition for gdi_demoApp (TApplication).      
  16. */
  17.  
  18.  
  19. #include <owl\owlpch.h>
  20. #pragma hdrstop
  21.  
  22.  
  23. #include "gd_dmapp.rh"            // Definition of all resources.
  24.  
  25.  
  26. //
  27. // FrameWindow must be derived to override Paint for Preview and Print.
  28. //
  29. //{{TDecoratedFrame = SDIDecFrame}}
  30. class SDIDecFrame : public TDecoratedFrame {
  31. public:
  32.     SDIDecFrame (TWindow *parent, const char far *title, TWindow *clientWnd, bool trackMenuSelection = false, TModule *module = 0);
  33.     ~SDIDecFrame ();
  34. };    //{{SDIDecFrame}}
  35.  
  36.  
  37. //{{TApplication = gdi_demoApp}}
  38. class gdi_demoApp : public TApplication {
  39. private:
  40.  
  41.     void SetupSpeedBar (TDecoratedFrame *frame);
  42.  
  43. public:
  44.     gdi_demoApp ();
  45.     virtual ~gdi_demoApp ();
  46.  
  47.     TOpenSaveDialog::TData FileData;                    // Data to control open/saveas standard dialog.
  48.     void OpenFile (const char *fileName = 0);
  49. //{{gdi_demoAppVIRTUAL_BEGIN}}
  50. public:
  51.     virtual void InitMainWindow();
  52. //{{gdi_demoAppVIRTUAL_END}}
  53.  
  54. //{{gdi_demoAppRSP_TBL_BEGIN}}
  55. protected:
  56.     void CmFileNew ();
  57.     void CmFileOpen ();
  58.     void CmHelpAbout ();
  59. //{{gdi_demoAppRSP_TBL_END}}
  60. DECLARE_RESPONSE_TABLE(gdi_demoApp);
  61. };    //{{gdi_demoApp}}
  62.  
  63.  
  64. #endif                                      // __gd_dmapp_h sentry.
  65.